package com.mayikt.member.impl.utils;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Component
public class ChannelUtil {

    @Value("${mayikt.login.token.channel}")
    private String[] loginTokenChannel;

    public  Boolean existChannel(String channel) {
        for (String s : loginTokenChannel) {
            if (channel.toLowerCase().equals(s)) {
                return true;
            }
        }
        return false;
    }

}
